package com.itheima.pojo;

import java.io.Serializable;
import java.util.List;

public class Template implements Serializable {
    private Integer id;                      //模板ID
    private String name;                     //模板名称
    private Integer specNum;                //规格数量
    private Integer paraNum;                //参数数量

    private List<Spec> specs;
    private List<Para> paras;

    public Template() {
    }

    public Template(Integer id, String name, Integer specNum, Integer paraNum) {
        this.id = id;
        this.name = name;
        this.specNum = specNum;
        this.paraNum = paraNum;
    }

    public Template(Integer id, String name, Integer specNum, Integer paraNum, List<Spec> specs, List<Para> paras) {
        this.id = id;
        this.name = name;
        this.specNum = specNum;
        this.paraNum = paraNum;
        this.specs = specs;
        this.paras = paras;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSpecNum() {
        return specNum;
    }

    public void setSpecNum(Integer specNum) {
        this.specNum = specNum;
    }

    public Integer getParaNum() {
        return paraNum;
    }

    public void setParaNum(Integer paraNum) {
        this.paraNum = paraNum;
    }

    public List<Spec> getSpecs() {
        return specs;
    }

    public void setSpecs(List<Spec> specs) {
        this.specs = specs;
    }

    public List<Para> getParas() {
        return paras;
    }

    public void setParas(List<Para> paras) {
        this.paras = paras;
    }

    @Override
    public String toString() {
        return "Template{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", specNum=" + specNum +
                ", paraNum=" + paraNum +
                ", specs=" + specs +
                ", paras=" + paras +
                '}';
    }
}
